<script>

</script>
<div class="help">
    <ul>
        <li class="hl-counter">
            <a href="javascript:void(0);"><img src="/resource/img/gpw/home/right_1.png">
                <div>收益计算器</div>
            </a>
        </li>
        <li class="hl-service">
            <a target="_blank" href="https://www.sobot.com/chat/pc/index.html?sysNum=e1e1e09b411e417b8d5c3fd66fcb8124"><img src="/resource/img/gpw/home/right_2.png">
                <div><a target="_blank" href="https://www.sobot.com/chat/pc/index.html?sysNum=e1e1e09b411e417b8d5c3fd66fcb8124">
                        在线客服</a></div>
            </a>
        </li>
        <li class="hl-guanzhu">
            <a href=""><img src="/resource/img/gpw/home/right_03.png">
                <div>微信二维码</div>
            </a>
        </li>
        <li id="hl-comment" class="hl-comment cd-popup-trigger">
            <a href="#0"><img src="/resource/img/gpw/home/right_4.png">
                <div>吐槽</div>
            </a>
        </li>
    </ul>
</div>
<div class="backtop">
    <a href="javascript:;"><img src="/resource/img/gpw/home/backtop.png">
        <div class="bc-back">返回<br />顶部</div>
    </a>
</div>
<div class="cd-popup" role="alert" style="display: none">
    <div class="cd-popup-container tucao" style="display: none">
        <p><img src="/resource/img/gpw/home/saysome.png">意见改变产品，想法改变生活</p>
        <div class="textarea"><textarea rows="15" cols="100" id="n1" name="tucao">我想吐槽...</textarea></div>
        <a id="sl-sub" href="#0"><div class="sl-sub">提交</div></a>
        <a href="#0" class="cd-popup-close img-replace"></a>
    </div>
    <div class="cd-popup-container tucao2" style="display: none;">
        <p class="tc-img"><img src="/resource/img/gpw/financing/redbig.png"></p>
        <p class="tc-text">您的吐槽已提交成功</p>
        <a id="go-rel-btn" href=""><div class="go-rel-btn">确认</div></a>
        <a href="#0" class="cd-popup-close img-replace"></a>
    </div>
</div>
<script src="/resource/js/gpw/common.js"></script>
<script src="/resource/js/gpw/main.js"></script>
<script>
    var csl = document.getElementById("sl-sub");
    var gobtn = document.getElementById("hl-comment");
    var close = document.getElementById("go-rel-btn");
    gobtn.onclick = function () {
        console.log("aaaa");
        $(".cd-popup").css("display","block");
        $(".tucao").css("display","block");
    }
    close.onclick = function () {
        console.log("aaaa");
        $(".cd-popup").css("display","none");
        $(".tucao").css("display","none");
    }
    csl.onclick = function () {
        var content = document.getElementById("n1").value;
        $.ajax({
            url : '/tucao.html',
            type : "POST",
            data : {content:content},
            dataType : "json",
            cache:"false",
            timeout:30000,
            success : function(json) {
                if(json.code == 1){
                    $(".tucao").css("display","none");
                    $(".tucao2").css("display","block");
                }
            }
        });
    }


</script>